#include <WiFi.h>

const char* ssid     = "OrayBox-2.4G";
// const char* ssid     = "iKuai2G-cc7b";
const char* password = "314314314";

void connect_wifi(){
    Serial.println("connecting WiFi...");
    WiFi.begin(ssid, password);

    // 等待连接
    while (WiFi.status() != WL_CONNECTED) {
        delay(500);
        Serial.print(".");
    }

    Serial.println("\nWiFi connected sucess!");
    Serial.print("IP address: ");
    Serial.println(WiFi.localIP());
}
